package top.yongyan0624.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author yongyan
 * @since 2021-09-05
 */
@Data
public class VoteUser {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long voteId;

    private Long userId;

    @TableField("`option`")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String option;

    @TableField(exist = false)
    private List<String> optionList;
}
